package cn.psvmc.cxzapi.model.goods;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品属性表
 * @Author auto
 * @Date 2024-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_goods_attribute")
public class TGoodsAttribute implements Serializable {

    //商品属性id
    @TableId(value = "gaid", type = IdType.AUTO)
    private Integer gaid;

    //商品id
    @TableField("goods_id")
    private Integer goodsId;

    //属性名
    @TableField("name")
    private String name;

    //属性值
    @TableField("value")
    private String value;

    //属性位置（1  2 3）
    @TableField("position")
    private Integer position;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;


}
